export interface UpdateMetahumanReq {
}

export interface MetahunmanListItem {
  id: string,
  avatar_id: string,
  name: string,
  preview_url: string,
  default: boolean,
  create_time: string,
  update_time: string,
}

export interface MetahumanListReq {
  page: number;
  page_size: number;
}

export interface MetahumanListRes {
  list: MetahunmanListItem[]
  page: number,
  page_size: number,
  total: number
}


export interface MetahumanStartRes {
  task_id: string;
  message: string;
}

export interface MetahumanStopRes {
  message: string
  code: number
}


export interface MetahumanCheckRes {
  status: string
  metahuman_url: string
  coturn_url: string
}

export interface updateUserFeedbackReq {
  appId: string;
  chatId: string;
  dataId: string | undefined;
  chatItemId: string | undefined;
  shareId: string;
  outLinkUid?: string;
  userGoodFeedback?: string;
  userBadFeedback?: string;
}

export interface getHistoriesReq {
  appId: string | string[];
  pageNum: number;
  pageSize: number;
  dateStart: string;
  dateEnd: string;
  q: string;
  isFusionApp?: boolean;
  fusionAppId?: string;
  isGlobal?: boolean;
}

export interface getHistoriesRes {
  _id: string;
  title: string;
  obj: string;
  userId: string;
  time: string;
  id: string;
  highlight_content: string;
}


export interface getChatInitReq {
  appId: string;
  chatId: string;
  offset?: number;
  pageSize?: number;
  type?: "normal"
}

// 对话消息格式
export interface ChatMessage {
  role: "user" | "assistant";
  content: string;
}

// 猜你想问请求接口
export interface createQuestionGuideReq {
  messages: ChatMessage[];  // 对话历史
}
